home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.plaf.basic;
-
- import java.awt.Component;
- import java.awt.Rectangle;
- import java.awt.event.ComponentEvent;
- import java.awt.event.ComponentListener;
- import java.util.EventObject;
- import javax.swing.JInternalFrame;
-
- public class BasicInternalFrameUI$ComponentHandler implements ComponentListener {
- // $FF: synthetic field
- private final BasicInternalFrameUI this$0;
-
- protected BasicInternalFrameUI$ComponentHandler(BasicInternalFrameUI var1) {
- this.this$0 = var1;
- }
-
- public void componentHidden(ComponentEvent var1) {
- }
-
- public void componentMoved(ComponentEvent var1) {
- }
-
- public void componentResized(ComponentEvent var1) {
- Rectangle var2 = ((Component)((EventObject)var1).getSource()).getBounds();
- JInternalFrame.JDesktopIcon var3 = null;
- if (this.this$0.frame != null) {
- var3 = this.this$0.frame.getDesktopIcon();
- if (this.this$0.frame.isMaximum()) {
- this.this$0.frame.setBounds(0, 0, var2.width, var2.height);
- }
- }
-
- if (var3 != null) {
- Rectangle var4 = ((Component)var3).getBounds();
- int var5 = var4.y + (var2.height - BasicInternalFrameUI.access$2(this.this$0).height);
- ((Component)var3).setBounds(var4.x, var5, var4.width, var4.height);
- }
-
- if (!BasicInternalFrameUI.access$2(this.this$0).equals(var2)) {
- BasicInternalFrameUI.access$3(this.this$0, var2);
- }
-
- this.this$0.frame.validate();
- }
-
- public void componentShown(ComponentEvent var1) {
- }
- }
-